<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 *
 *
 *
 * @package     h
 * @subpackage  models
 * @category    models
 * @author      hyw
 * @copyright   copyright (c) 2012
 * @filesource
 */
class Relationship extends CI_model {

    protected $_table_name = 'h_client_relationship';
    protected $_key_name = 'client_relationship_id';
	
    function get_relationship($verify_code) {

    	$this->db->where('ref_client_verify_code',$verify_code);
    	$query=$this->db->get($this->_table_name);
    	return $query->result();
		
    }

    function data_update_submit($id , $data) {

        $this->db->where($this->_key_name , $id);
        //$query=
        $this->db->update($this->_table_name , $data);
        //return $query->result();
        
    }
	
	
}